package com.yunyao.dao.service.bamu;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunyao.dao.model.BamuSupplyApplyMaterial;

import java.util.List;

/**
 * <p>
 * 合同材料表 服务类
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
public interface IBamuSupplyApplyMaterialService extends IService<BamuSupplyApplyMaterial> {
    /**
     * 获取供货申请下的所有材料列表 包含剩余发货量
     * @param applyId
     * @return
     */
    List<BamuSupplyApplyMaterial> hasSupplyMaterialList(String applyId);

    BamuSupplyApplyMaterial getTotalByOrderId(String orderId);


    List<BamuSupplyApplyMaterial> getMaterialListByOrderId(String orderId);

    List<BamuSupplyApplyMaterial> listByPurchaseApplyId(String purchaseApplyId);
}
